package com.generico.dto.ctg;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "mueble")
public class CtgMueble implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "mueble_id", nullable = false)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IdGenerator")
	@SequenceGenerator(allocationSize = 1, name = "IdGenerator", sequenceName = "mueble_id_seq")
	private Long ctgMuebleId;
	
	@Column(name = "mueble_descripcion")
	private String ctgMuebleDescripcion;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_suc_id")
	private CtgSucursal ctgSucursal;

	public Long getCtgMuebleId() {
		return ctgMuebleId;
	}

	public void setCtgMuebleId(Long ctgMuebleId) {
		this.ctgMuebleId = ctgMuebleId;
	}

	public String getCtgMuebleDescripcion() {
		return ctgMuebleDescripcion;
	}

	public void setCtgMuebleDescripcion(String ctgMuebleDescripcion) {
		this.ctgMuebleDescripcion = ctgMuebleDescripcion;
	}

	public CtgSucursal getCtgSucursal() {
		return ctgSucursal;
	}

	public void setCtgSucursal(CtgSucursal ctgSucursal) {
		this.ctgSucursal = ctgSucursal;
	}

	
}
